#include "stdafx.h"
#include "blur_seter.h"
blur_seter::blur_seter( shader_manager* mgr ):
arg_seter(mgr),
m_speed(0.0f),
m_min_speed(150.0f),
m_motion_speed(0.0f)
{
	
}

blur_seter::~blur_seter()
{

}

void blur_seter::set_args( LTEffectShader *pEffect,const LTShaderDeviceState &ShaderDeviceState )
{
	pEffect->SetTextureRT("m_curframtexture", (HRENDERTARGET)1);
	pEffect->SetTextureRT("m_lastframtexture", (HRENDERTARGET)2);
	if(m_speed>m_min_speed)
	m_motion_speed= 0.03f + (m_speed-m_min_speed)*0.001f;
	else
	m_motion_speed = 0.0f;
	pEffect->SetFloat("SampleDist",m_motion_speed);

}